import greenfoot.*;  // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)

/**
 * Write a description of class BotonScores here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class BotonScores extends Boton
{
    private ScoreBoard scoreB=new ScoreBoard(400,400);
    /**
     * Act - do whatever the BotonScores wants to do. This method is called whenever
     * the 'Act' or 'Run' button gets pressed in the environment.
     */
   
    /**metodo principal de como actuara el boton de scores*/
    public void act() 
    {
        
        if(Greenfoot.mouseClicked(this))
        {
           getWorld().addObject(scoreB,500,300);
        }
        
    }    
}
